﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Top.aspx.cs" Inherits="CRM.Web.Top" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />    
    <style type="text/css">
    html
    {
        border:#336699 1px solid; 
    }
    </style>
    <script src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        function clithis(i) {
            if (document.readyState != "complete") return;
            switch (i) {
                case 1:
                    {
                        history.go(-1);
                    } 
                    break;
                case 2:
                    {
                        history.go(1); 
                    } 
                    break;
                case 3:
                    {
                        parent.frameMain.location = 'Main.aspx';
                    } 
                    break;
                case 4:
                    {
                        SHwin();
                    } 
                    break;
                case 5:
                    {
                        //知识库
                        //parent.frameMain.location = '';
                    } 
                    break;
                case 6:
                    {
                        //业务管理
                        
                    }
                    break;
                case 7:
                    {
                        //消息
                        window.open('Message/MessageSend.aspx', '消息', 'height=270,width=356');
                    } 
                    break;
                case 8:
                    {
                        //通讯录
                        //parent.frameMain.location = '';
                    } 
                    break;
                case 10:
                    {
                        parent.frameMain.location.reload();
                    }
                    break;
                case 11:
                    {
                        parent.frameMain.location = 'Logout.aspx';
                    } 
                    break;
                case 12:
                    {
                        //关于
                        window.open('about.aspx', '关于', 'height=245,width=387');
                    } 
                    break;
                case 13:
                    {
                        //window.open('Message/MessageShow.aspx', '查看消息', 'height=270,width=356');
                    }
                    break;
                default:
                    {
                    }
                    break;

            }
        }
        function SHwin() {
            if (document.readyState != "complete") return;
            var leftbar = parent.Sbar.cols.split(",")[0] * 1;
            if (leftbar < 1) {
                parent.Sbar.cols = "157, 5, *";
            }
            else {
                parent.Sbar.cols = "0, 0, *";
            }
        }
        function MO(e) {
            $(e).removeClass("P");
            $(e).addClass("T");
        }
        function MU(e) {
            $(e).removeClass("T");
            $(e).addClass("P");
        }
    </script>
</head>
<body  >
    <form id="form1" runat="server">    
    <div>
        <div class="bg">
            <table id="tMenu" runat="server" cellpadding="2" cellspacing="0" style="border: 0px;">
            </table>
        </div>
        <div class="bg">
            <table id="table3" cellspacing="0" cellpadding="0" style="border: 0px; float: left;">
                <tr>
                    <td style="margin-left: 5px;">
                        &nbsp;
                    </td>
                    <td class="P" id="PutInFtda" onmouseover="MO(this)" onmouseout="MU(this)" onclick="clithis(1)">
                        <img alt="" hspace="1" src="Images/Top/back.gif" align="absMiddle" border="0" />
                        后退
                    </td>
                    <td class="P" id="PutInFtdb" onmouseover="MO(this)" onmouseout="MU(this)" onclick="clithis(2)">
                        <img alt="" hspace="1" src="Images/Top/go.gif" align="absMiddle" border="0" />
                        前进
                    </td>
                    <td class="LL">
                        |
                    </td>
                    <td class="P" id="PutInFtdd" onmouseover="MO(this)" onmouseout="MU(this)" onclick="clithis(3)">
                        <img alt="" hspace="1" src="Images/Top/home.gif" align="absMiddle" border="0" />
                        首页
                    </td>
                    <td class="LL">
                        |
                    </td>
                    <td class="P" id="PutInFtdc" onmouseover="MO(this)" onmouseout="MU(this)" onclick="clithis(4)">
                        <img alt="" hspace="1" src="Images/Top/folder.gif" align="absMiddle" border="0">
                        目录
                    </td>
                    <td class="LL">
                        |
                    </td>
                    <td class="P" id="PutInFtde" onmouseover="MO(this)" onmouseout="MU(this)" onclick="clithis(5)">
                        <img alt="" hspace="1" src="Images/Top/faq.gif" align="absMiddle" border="0">
                        FAQ
                    </td>
                    <td class="LL">
                        |
                    </td>
                    <td class="P" id="PutInFtdf" onmouseover="MO(this)" onmouseout="MU(this)" onclick="clithis(6)">
                        <img alt="" hspace="1" src="Images/Top/preferences.gif" align="absMiddle" border="0">
                        业务管理
                    </td>
                    <td class="LL">
                        |
                    </td>
                    <%--<td class="P" id="PutInFtdf" onmouseover="MO(this)" onmouseout="MU(this)" onclick="clithis(7)">
                        <img alt="" hspace="1" src="Images/Top/chat.gif" align="absMiddle" border="0">
                        内部消息
                    </td>
                    <td class="LL">
                        |
                    </td>
                    <td class="P" id="T12" onmouseover="MO(this)" onmouseout="MU(this)" onclick="clithis(13)">
                        <img alt="" hspace="1" src="Images/Top/chat.gif" align="absMiddle" border="0">
                        （<asp:Label ID="lblInsideMessage" runat="server" Text="0"></asp:Label>）条新消息
                    </td>
                    <td class="LL">
                        |
                    </td>
                    <td class="P" id="PutInFtdg" onmouseover="MO(this)" onmouseout="MU(this)" onclick="clithis(8)">
                        <img alt="" hspace="1" src="Images/Top/addressbook.gif" align="absMiddle" border="0">
                        通讯录
                    </td>
                    <td class="LL">
                        |
                    </td>--%>
                    <td class="P" id="PutInFtdg" onmouseover="MO(this)" onmouseout="MU(this)" onclick="clithis(10)">
                        <img alt="" hspace="1" src="Images/Top/refresh.gif" align="absMiddle" border="0">
                        刷新
                    </td>
                    <td class="LL">
                        |
                    </td>
                    <td class="P" id="logout" onmouseover="MO(this)" onmouseout="MU(this)" onclick="clithis(11)">
                        <img alt="" hspace="1" src="Images/Top/exit.gif" align="absMiddle" border="0">
                        退出
                    </td>
                </tr>
            </table>
            <table  id="table4" cellspacing="0" cellpadding="0" style="border: 0px; float: right;">
                <tr>
                    <td align="right" class="P" onmouseover="MO(this)" onmouseout="MU(this)" onclick="clithis(12)">
                        - 关于 -
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="display: none;">
        <asp:Panel ID="pContent" runat="server" ></asp:Panel>
    </div>
    </form>
</body>
</html>
<script type="text/javascript"  defer="defer">
    var oPopup = window.createPopup();
    var popTop = 50;
    function popmsg(x, y, num) {
        var winstr = $(".popMsg" + num).html();
        var height = $(".popHeight" + num).html();
        oPopup.document.body.innerHTML = winstr;
        popshow(x, y, height);
    }
    function popshow(x, y, height) {
        window.status = popTop;
        oPopup.show(x + 2, y + 23, 120, height, document.body);
    }
    function mainFrameOpenUrl(url) {
        parent.frameMain.location.href = url;
        oPopup.hide();
    }
    function NewOpenUrl(url, sWidth, SHeight) {
        window.open(url, 'newwindow', 'height=' + SHeight + ', width=' + sWidth + ', top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
    }
</script>
